<!--
 * @FilePath     : /study_code/layui/6-4-18.html
 * @Description  : 层是否允许拉伸
 * @Date         : 2025-04-08 17:33:58
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-09 08:33:25
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
    <style>
      body {
        height: 2000px;
      }
    </style>
  </head>
  <body>
    <script src="/layui/dist/layui.js"></script>
    <script>
      // type参数
      layui.use('layer', function () {
        var layer = layui.layer,
          $ = layui.$

        layer.open({
          type: 0,
          content: '<div>文字信息22</div>',

          /**
           * @brief: 是否允许拉伸
           * @value {boolean}
           * true 默认情况下，你可以在弹层右下角拖动来拉伸尺寸（仅右下角可用）
           * false 不允许，屏蔽该功能
           * !该参数对 loading, tips 层无效
           */
          // resize: true,
          resize: false,
        })
      })
    </script>
  </body>
</html>
